package com.kaikeba.homework.spring.model;

import java.io.Serializable;
import java.math.BigDecimal;

public class Goods implements Serializable {
    private static final long serialVersionUID = 7258419087666583217L;
    /**
     * 商品Id（主键）
     */
    Integer goodsId;
    /**
     * 商品名称
     */
    String goodsName;
    /**
     * 商品规格
     */
    String goodsSpec;
    /**
     * 单位
     */
    String unit;
    /**
     * 价格
     */
    BigDecimal price;

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsSpec() {
        return goodsSpec;
    }

    public void setGoodsSpec(String goodsSpec) {
        this.goodsSpec = goodsSpec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsSpec='" + goodsSpec + '\'' +
                ", unit='" + unit + '\'' +
                ", price=" + price +
                '}';
    }
}
